import sxs.split

import common, unittest

class Tests(unittest.TestCase):

    def test_find_sentences(self):
        '''split.find_sentences()'''
        
        sentences = ['Hello, how are you?',
                     'I am fine.',
                     'This is pretty cool!']
        for idx,sen in enumerate(sxs.split.find_sentences(' '.join(sentences))):
            self.assert_(sen == sentences[idx])

def suite():
    return unittest.TestLoader().loadTestsFromTestCase(Tests)

if __name__ == '__main__':
    (options, args), parser = common.parse_args()
    if options.verbose:
        verbosity=2
    else:
        verbosity=1
    unittest.TextTestRunner(verbosity=verbosity).run(suite())
